package com.blb.edugatewayservice.feign;

import com.blb.common.entity.Course;
import com.blb.common.entity.User;
import com.blb.common.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 调用课程服务的接口
 */
@FeignClient("edu-user-service")
public interface UserServiceFeignClient {

    @GetMapping("/user/{id}")
    ResponseResult<User> getUserById(@PathVariable Long id);
}
